package day0905;

public class PersonTest {
    public static void main(String[] args) {
        Student ll = new Student();
        ll.name = "李玲";
        ll.age = 18;
        ll.address = "苏州";
        ll.className = "基础班";
        ll.stuId = "0900";
        ll.study();
        ll.sayHi();

        Student lf = new Student("林飞",23,"南京","正式班","0010");
        lf.sayHi();

        Teacher tz = new Teacher();
        tz.name = "涛子";
        tz.age = 23;
        tz.address = "云南";
        tz.salary = 4567.7;
        tz.teach();
        tz.sayHi();

        Teacher xm = new Teacher("小明",34,"青岛",8889);
        xm.sayHi();

        Doctor zt = new Doctor();
        zt.name = "张涛";
        zt.age = 43;
        zt.address = "广州";
        zt.cut();
        zt.sayHi();
        Doctor ww = new Doctor("王维",45,"南宁","高级主任");
        ww.cut();
        ww.sayHi();




    }
}
